function generateDeviceCode(){
	alert('自动生成设备编号');
}
function getIpTypeChange(value){
	if(value == 0){
		setGetIpTypeShow();
	}
	if(value == 1){
		setGetIpTypeHide();
	}
}

function setGetIpTypeHide(){
	document.getElementById('ipAddressDiv').style.display="none";
	document.getElementById('subnetMaskDiv').style.display="none";
	document.getElementById('defGatewayDiv').style.display="none";
	document.getElementById('masterDNSDiv').style.display="none";
	document.getElementById('secondDNSDiv').style.display="none";
}

function setGetIpTypeShow(){
	document.getElementById('ipAddressDiv').style.display="block";
	document.getElementById('subnetMaskDiv').style.display="block";
	document.getElementById('defGatewayDiv').style.display="block";
	document.getElementById('masterDNSDiv').style.display="block";
	document.getElementById('secondDNSDiv').style.display="block";
}